/*
 * @Author: your name
 * @Date: 2021-04-13 21:07:24
 * @LastEditTime: 2021-05-15 19:47:19
 * @LastEditors: Please set LastEditors
 * @Description: 会议进展
 * @FilePath: /medicine-web/src/store/modules/meeting.js
 */
import rest from './../rest'
const meeting = {
  state: {},
  mutations: {},
  actions: {
    async getMeetingList({ commit }, data) { // 获取会议列表
      const res = await rest.get('meeting/search', data)
      if (res && res.code === 200) {
        return res.data
      }
      return {}
    },
    async getMeetingDetail({ commit }, data) { // 获取会议详情
      const res = await rest.get('meeting/info', data)
      if (res && res.code === 200) {
        return res.data
      }
      return {}
    },
    async getMeetingStatitics({ commit }, data) {
      const res = await rest.get('meeting/report')
      if (res && res.code === 200) {
        return res.data
      }
      return {}
    }
  },
  getters: {}
}
export default meeting